package org.codert.wxpay.support.client.impl;

import org.apache.http.client.HttpClient;
import org.codert.wxpay.support.ConstantEnum;
import org.codert.wxpay.support.client.AbstractWxPayClient;
import org.codert.wxpay.support.dto.WxPayRequest;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * @author: TanJingyu
 * @create: 2021-08-12 15:37
 **/
@Component
@Lazy
public class WxPayH5Client extends AbstractWxPayClient {

    public WxPayH5Client(HttpClient httpClient) {
        super(httpClient);
    }

    @Override
    public Boolean support(ConstantEnum payWay) {
        return ConstantEnum.H5 == payWay;
    }

    @Override
    public Object createOrder(WxPayRequest request) {
        return null;
    }

    @Override
    public Object realPay() {
//        this.httpClient.execute()
        return null;
    }
}
